<style type="text/css">
  .up{
    border:0px solid;
    background:url("/images/thumb_up_off.png") no-repeat;
    font-size:0px;
    width:20px;
    height:20px;
  }
  .down{
    border:0px solid;
    background:url("/images/thumb_down_off.png") no-repeat;
    font-size:0px;
    width:20px;
    height:20px;
  }
</style>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Category</a>
  <div class="scroll">
    <%if !@category.blank?%>
      <%= link_to "All",{:action =>"vote"} %>
      <%  @category.each do |cat|%>
        <%= link_to "#{cat.title}",{:action =>"vote",:cat=>"#{cat.id}"} %>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">EveryBody Statement</a>
  <div class="scroll">
    <%if !@statement.blank?%>
      <p><%= @statement.first.message %></p>
      <p>created at :<%= @statement.first.created_at %> - by :<%= @statement.first.user.login %></p>
      <p><%= link_to image_tag("/images/thumb_up_off.png"),statement_vote_up_workspaces_path(@statement.first.id) %><%= link_to image_tag("/images/thumb_down_off.png"),statement_vote_down_workspaces_path(@statement.first.id) %></p>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">EveryBody Bad Day Story</a>
  <div class="scroll">
    <%if !@badday.blank?%>
      <p><%= @badday.first.message %></p>
      <% if !@badday.first.nil? %>
        <p>created at :<%= @badday.first.created_at %> - by :<%=  @badday.first.alias %></p>
        <p><%= link_to image_tag("/images/thumb_up_off.png"),badday_vote_up_workspaces_path(@badday.first.id) %><%= link_to image_tag("/images/thumb_down_off.png"),badday_vote_down_workspaces_path(@badday.first.id) %></p>
      <%else%>
        <p>created at :<%= @badday.first.created_at %> - by :<%=  @badday.first.user.login %></p>
        <p><%= link_to image_tag("/images/thumb_up_off.png"),badday_vote_up_workspaces_path(@badday.first.id) %><%= link_to image_tag("/images/thumb_down_off.png"),badday_vote_down_workspaces_path(@badday.first.id) %></p>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">EveryBody Question</a>
  <div class="scroll">
    <%if !@question.blank?%>
      <p><%= @question.first.message %></p>
      <p>created at :<%= @question.first.created_at %> - by :<%= @question.first.user.login %></p>
      <% form_tag question_vote_workspaces_path do%>
        <%= hidden_field_tag "format","#{@question.first.id}" %>
        <p><%= text_field_tag :answer %></p>
        <p><%= submit_tag "up",:class =>"up"%><%= submit_tag "down",:class =>"down"%></p>
      <%end%>
    <%end%>
  </div>
</div>
